Skip to content

Model with dictionary property#834

Closed
darrelmiller wants to merge 1 commit intomainfrom
dm/dictionary-sample
Closed

Model with dictionary property#834
darrelmiller wants to merge 1 commit intomainfrom
dm/dictionary-sample

Conversation

@darrelmiller
Copy link
Copy Markdown
Member

Added sample for scenario #62 All languages fail to render a model for the following OpenAPI

openapi: 3.0.0
info:
  title: "Dictionary API"
  version: "1.0.0"
servers:
  - url: https://example.org/
paths:
  /resource: 
    get:
      responses:
        200:
          description: ok
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/resource"
components:
  schemas:
    resource:
      type: object
      properties:
        info:
          type: string
        # customSettings: Dictionary<string,string>
        customSettings:
          type: object
          patternProperties:
            ".*":
              type: string

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support in models for dictionary types

2 participants